package com.pdsu.xpf.graduation01.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class MyDateUtil {


    private static SimpleDateFormat simpleDateFormat;

    public static String getCurrentDate(String str){
        simpleDateFormat=new SimpleDateFormat(str);
        return  simpleDateFormat.format(new Date());
    }

    public static String createOrderNumberByTime(){
        simpleDateFormat=new SimpleDateFormat("yyyyMM");
        String fix = System.currentTimeMillis()+"";
        String number = simpleDateFormat.format(new Date())+fix;
        return number;
    }
}
